import java.util.Scanner;

public class MinNumberCount {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt(); // 数组长度
        int[] arr = new int[n]; // 数组

        for (int i = 0; i < n; i++) {
            arr[i] = scanner.nextInt();
        }

        int min = findMin(arr);
        int count = countMinOccurrences(arr, min);
        System.out.println(count);
    }

    private static int findMin(int[] arr) {
        int min = arr[0];

        for (int i = 1; i < arr.length; i++) {
            if (arr[i] < min) {
                min = arr[i];
            }
        }

        return min;
    }

    private static int countMinOccurrences(int[] arr, int min) {
        int count = 0;

        for (int num : arr) {
            if (num == min) {
                count++;
            }
        }

        return count;
    }
}
